package com.ghca.myinfo3.system.repository;

import com.ghca.myinfo3.system.entity.Department;
import com.ghca.myinfo3.system.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2016/12/18.
 */
@Repository
public interface UserRepository extends JpaRepository<User, Long> {

    User findByUsername(String username);


    List<User> findByDepartment(Department department);



}
